<%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%>
<!-- #include file="../Upload.asp" -->
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>

<body>
<div class="xuly" align="center">
		<%
			// Get reference to ASPUploader:
  var Uploader = GetASPUploader();

  // Use either physical (C:\Files), relative (..\Files), or virtual ("/Files") paths:
  Uploader.Destination = "../images";

  // Set longer timeout for large files if needed:
 Server.ScriptTimeout = 900;

  //try {
    // Start receiving and saving file(s):
    Uploader.Upload();
  //} catch(E) {
    //Response.Write("Upload canceled or error occured:<br>" + E.description);
    //Response.End();
  //}

  // Report successful upload:
 // Response.Write(Uploader.Files.Count + " file(s) successfully uploaded<br>");
 // Response.Write("Value of Text1 field: " + Uploader.Form("Text1"));
 		//var url = Request.Form("file")
		//var sql = "Update Product Set [Image] Values ('"+url+"') Where ProductID = '"+12+"'"
		//var list = conn.Execute(sql)
 		Response.Write("Tải ảnh thành công")
		%>
		</br>
		<a href="UpImage.asp">Trở lại</a>
		</div>
</body>
</html>
